﻿<%@ Page Title="" Language="C#" MasterPageFile="~/pages/master/WebList.Master" AutoEventWireup="true"
    CodeBehind="HospitalListTreeTable.aspx.cs" Inherits="BF.Web.pages.Dictionary.HospitalManagement.HospitalListTreeTable" %>

<%@ Register Src="~/pages/UserControls/SysAreaTree.ascx" TagName="areaControl" TagPrefix="uc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceJs" runat="server">
    <script src="../../../script/OpenQuery.js" type="text/javascript"></script>
    <style type="text/css">
        .treePanlStyle
        {
            position: absolute;
            bottom: 0px;
            top: 0px;
            border: #99bbe8 1px solid;
            width: 270px;
            overflow: hidden;
        }
    </style>
    <script type="text/javascript">
        //操作处理
        var mytree;
        //弹出新增窗口
        function Add() {
            winer.OpenWin('机构新增', GetUrl(this) + 'HospitalEdit.aspx?sfatherNodeName=' +
             encodeURIComponent($("#tishiTD").html()) +
              '&sfathergkey=' + $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val(),
              800, 320, false, this);
            return false;
        }

        //停用前台方法
        function Stop() {
            if ($("#div_scroll_x :checkbox:checked").length == 0) {
                if ($("#ctl00_ContentPlaceHtml_lbtnStop").find("div").text() == "停用") {
                    Ext.MessageBox.show({ title: '提示', msg: '请选择要停用的数据！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                    return false;
                }
                else if ($("#ctl00_ContentPlaceHtml_lbtnStop").find("div").text() == "启用") {
                    Ext.MessageBox.show({ title: '提示', msg: '请选择要启用的数据！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                    return false;
                }
            }
            else {
                if ($("#ctl00_ContentPlaceHtml_lbtnStop").find("div").text() == "停用") {
                    Ext.MessageBox.show({
                        title: '提示',
                        msg: '是否确认要停用记录？',
                        buttons: { yes: '确  定', no: '取 消' },
                        fn: function (result) {
                            if (result == "yes") {
                                __doPostBack("ctl00$ContentPlaceHtml$lbtnStop", "");
                            }
                        },
                        icon: 'ext-mb-question'
                    });
                    return false;
                }
                else if ($("#ctl00_ContentPlaceHtml_lbtnStop").find("div").text() == "启用") {
                    Ext.MessageBox.show({
                        title: '提示',
                        msg: '是否确认要启用记录？',
                        buttons: { yes: '确  定', no: '取 消' },
                        fn: function (result) {
                            if (result == "yes") {
                                __doPostBack("ctl00$ContentPlaceHtml$lbtnStop", "");
                            }
                        },
                        icon: 'ext-mb-question'
                    });
                    return false;
                }
            }
        }

        //修改前台方法
        function Update() {
            if ($("input[name*='chkID']:checked").length == 0) {
                Ext.MessageBox.show({ title: '提示', msg: '请选择要修改的数据！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            if ($("input[name*='chkID']:checked").length > 1) {//只能选择一项的判断
                Ext.MessageBox.show({ title: '提示', msg: '只能选择一条记录！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            var values = $("input[name*='chkID']:checked'").val();
            winer.OpenWin('机构修改', GetUrl(this) + 'HospitalEdit.aspx?gKey=' + values + '&sfatherNodeName=' +
            encodeURIComponent($("#tishiTD").html()) +
            '&sfathergkey=' + $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val(),
            800, 320, false, this);
            return false;
        }

        //查看前台方法
        function View(values) {
            winer.OpenWin('机构查看', GetUrl(this) + 'HospitalEdit.aspx?State=View&gKey=' + values + '&sfatherNodeName=' +
            encodeURIComponent($("#tishiTD").html()) + '&sfathergkey=' +
            $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val(),
            800, 320, false, this);
            return false;
        }
        function ViewDepartment(values) {
            if ($("input[name*='chkID']:checked").length == 0) {
                Ext.MessageBox.show({ title: '提示', msg: '请选择要管理的数据！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            if ($("input[name*='chkID']:checked").length > 1) {//只能选择一项的判断
                Ext.MessageBox.show({ title: '提示', msg: '只能选择一条记录！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            var values = $("input[name*='chkID']:checked'").val();
            winer.OpenWin('部门管理', '/pages/Dictionary/DepartmentManagement/DepartmentList.aspx?gKey=' + values, 800, 480, false, this);
            return false;
        }
        //控制checkbox在单选模式时，只能单选
        function Controlcheck(obj) {
            if (!$("#chxIsMultipleSelect").attr("checked")) {
                if (obj.checked) {
                    $("#div_scroll_x  :checkbox:checked").not(obj).attr("checked", false);
                }
            }
        }

        function checkStop(obj) {
            Controlcheck(obj);
            //停用启用状态
            var state = "";
            $("#div_scroll_x :checkbox:checked").each(function () {
                state += $(this).attr("accesskey") + "#";
            })

            if (state.indexOf("0#1#") != -1 || state.indexOf("1#0#") != -1) {
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("disabled", "disabled");
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("href", "javascript:void(0);");
                return false;
            }
            if (state.indexOf("0#") != -1) {

                $("#ctl00_ContentPlaceHtml_hideStop").val("1");
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("disabled", "");
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("href", " javascript: __doPostBack('ctl00$ContentPlaceHtml$lbtnStop', '')")
                $('#divStop').html('启用');

                titleStop = "提示";
                msgStop = "请选择要启用的记录！";
                configStop = "是否确认要启用记录？";
                return false;
            }
            if (state.indexOf("1#") != -1) {
                $("#ctl00_ContentPlaceHtml_hideStop").val("0");
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("disabled", "");
                $('#divStop').html('停用');
                $("#ctl00_ContentPlaceHtml_lbtnStop").attr("href", " javascript: __doPostBack('ctl00$ContentPlaceHtml$lbtnStop', '')")
                titleStop = "提示";
                msgStop = "请选择要停用的记录！";
                configStop = "是否确认停用记录？";
                return false;
            }
        }

        function MultipleSelect(obj) {
            if (obj.checked) {
                $("#div_scroll_x  :checkbox").attr("checked", true);
            }
            else {
                $("#div_scroll_x :checkbox:checked").each(function () {
                    $(this).attr("checked", false);
                })
            }
        }

        //弹出调入下属机构窗体
        function AddSubordinate() {
            if ($("input[name*='chkID']:checked").length == 0) {
                Ext.MessageBox.show({ title: '提示', msg: '请选择要调整的数据！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            if ($("input[name*='chkID']:checked").length > 1) {//只能选择一项的判断
                Ext.MessageBox.show({ title: '提示', msg: '只能选择一条记录！', buttons: { ok: '确  定' }, icon: 'ext-mb-info' });
                return false;
            }
            var values = $("input[name*='chkID']:checked'").val();
            var gfahterKey = $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val();
            winer.OpenWin('调整机构', GetUrl(this) + 'HospitalAdjustOrganization.aspx?gKey=' + values + '&gfahterKey=' + gfahterKey, 350, 550, false, this);
            return false;
        }

        //导入窗口
        function ImportArea() {
            winer.OpenWin('机构导入', GetUrl(this) + 'HospitalImport.aspx', 600, 175, false, this);
            return false;
        }
    </script>
    <%--树处理--%>
    <script type="text/javascript">
        function GetThis() {
            return this;
        }

        Ext.onReady(function () {
            mytree = new Ext.tree.TreePanel({
                el: "container", //应用到的html元素id
                animate: true, //以动画形式伸展,收缩子节点
                title: "机构管理",
                collapsible: false,
                titleCollapse: false,
                rootVisible: true, //是否显示根节点
                autoScroll: true,
                height: Ext.getBody().dom.clientHeight,
                bodyBorder: false,
                root: new Ext.tree.AsyncTreeNode({
                    id: "00000000-0000-0000-0000-000000000000",
                    text: "医疗机构",
                    icon: "/images/icons/chart_organisation.png",
                    expanded: true
                }),
                border: false,
                lines: true, //节点之间连接的横竖线
                loader: new Ext.tree.TreeLoader({
                    dataUrl: "HHospitalTree.ashx?gKey=" + $("#ctl00_ContentPlaceHtml_hidgKey").val(),
                    listeners: {
                        "loadexception": function (loader, node, response) { }
                    }
                }),
                layout: 'fit'
            });
            mytree.render();
            mytree.on('click', function (node) {
                node.expand();
                //不是根节点
                if (!node.isRoot) {
                    $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val(node.attributes.gKey);
                    $("#tishiTD").html(node.text);
                    if ($("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val() != "") {
                        $("#btnList a,#btnList img").attr("disabled", false);
                    }
                    $("#ctl00_ContentPlaceHtml_hidIsRoot").val("false");
                } else {
                    $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val("00000000-0000-0000-0000-000000000000");
                    $("#tishiTD").html("无上级机构");
                    if ($("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val() != "") {
                        $("#btnList a,#btnList img").not("#ctl00_ContentPlaceHtml_btnAdd,#ctl00_ContentPlaceHtml_btnAdd img,#ctl00_ContentPlaceHtml_LinkButton1,#ctl00_ContentPlaceHtml_LinkButton1 img").attr("disabled", false);
                        $("#ctl00_ContentPlaceHtml_btnAdd,#ctl00_ContentPlaceHtml_btnAdd img,#ctl00_ContentPlaceHtml_LinkButton1,#ctl00_ContentPlaceHtml_LinkButton1 img").attr("disabled", true);
                    }
                    $("#ctl00_ContentPlaceHtml_hidIsRoot").val("true");
                }
                __doPostBack('ctl00$ContentPlaceHtml$AspNetPager1', '');

            });

            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
                ReloadTree();

                var tmp = Ext.get('ctl00_ContentPlaceHtml_AspNetPager1');
                tmp.dom.style.width = Ext.getBody().dom.clientWidth - 271;
            });

            mytree.syncSize();
            var tmp = Ext.get('container');
            tmp.dom.onresize = function () {
                mytree.syncSize();
                var tmp2;
                tmp2 = Ext.get('ctl00_ContentPlaceHtml_AspNetPager1');
                tmp2.setWidth(Ext.getBody().dom.clientWidth - 271);
            }
        });

        //页面回帮
        function ReloadTree() {
            var mulitStopStart = $("#ctl00_ContentPlaceHtml_hidMulitStopStart").val();
            if (mulitStopStart == 1 || mulitStopStart == "") {
                var gfahterKey = $("#ctl00_ContentPlaceHtml_hidQueryFahterKey").val();
                var node = mytree.root.findChild('gKey', gfahterKey, true);
                var tiaozhenjigou = $("#ctl00_ContentPlaceHtml_hidtiaozhenjigou").val();
                if (node && tiaozhenjigou != "1") {
                    node.attributes.children = false;
                    mytree.loader.dataUrl = "HHospitalTree.ashx?gFatherKey=" + node.attributes.gKey;
                    if (node.reload)
                        node.reload(function () {
                            var selectedKey = $("#ctl00_ContentPlaceHtml_hidSelectedKey").val();
                            var selectedNode = mytree.root.findChild('gKey', selectedKey, true);
                            if (selectedNode != null) {
                                selectedNode.select();
                                $("#ctl00_ContentPlaceHtml_hidSelectedKey").val("");
                            }
                        });
                    else {
                        mytree.loader.load(node, function () {
                            node.expand(true, true);
                        })
                    }
                } else {
                    mytree.loader.dataUrl = "HHospitalTree.ashx?gKey=" + $("#ctl00_ContentPlaceHtml_hidgKey").val();
                    $("#ctl00_ContentPlaceHtml_hidtiaozhenjigou").val("");
                    mytree.root.reload();
                }
            }
            else if (mulitStopStart != "") {
                mytree.loader.dataUrl = "HHospitalTree.ashx?gKey=" + $("#ctl00_ContentPlaceHtml_hidgKey").val();
                mytree.root.reload();
            }
            $("#ctl00_ContentPlaceHtml_hidMulitStopStart").val("");
        }
        //控制checkbox在单选模式时，只能单选
        function Controlcheck(obj) {
            if (!$("#chxKey").attr("checked")) {
                if (obj.checked) {
                    $("#div_scroll_x  :checkbox:checked").not(obj).attr("checked", false);
                }
            }
        }

        //关闭弹出window时，执行的事件
        function Refurbish() {
            __doPostBack('ctl00$ContentPlaceHtml$AspNetPager1', '');
        }

        $(function () {
            $("#tabHead").css("width", document.documentElement.clientWidth - 271);
            $("#btnList a,#btnList img").not("#ctl00_ContentPlaceHtml_btnAdd,#ctl00_ContentPlaceHtml_btnAdd img,#ctl00_ContentPlaceHtml_LinkButton1,#ctl00_ContentPlaceHtml_LinkButton1 img").attr("disabled", false);
            $("#ctl00_ContentPlaceHtml_btnAdd,#ctl00_ContentPlaceHtml_btnAdd img,#ctl00_ContentPlaceHtml_LinkButton1,#ctl00_ContentPlaceHtml_LinkButton1 img").attr("disabled", true);

        });
        $(window).resize(function () {
            $("#tabHead").css("width", document.documentElement.clientWidth - 271);
        });

        function ExportHospital() {
            if ($("#tbList").children(":eq(1)").children().length == 0) {
                Ext.Msg.show({ title: '提示', msg: '没有要导出的数据！', buttons: { ok: '确  定' }, icon: Ext.Msg.INFO });
                return false;
            } else {
                return true;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHtml" runat="server">
    <div id="container" class="treePanlStyle">
    </div>
    <table id="tabHead" border="0" style="position: absolute; left: 271px; top: 0px;
        right: 0px;" cellpadding="0" cellspacing="0" class="listtop" align="center">
        <tr>
            <td id="QueryCondition" style="border-bottom: 1px solid #8db2e3;">
                <table id="chaxuntiaojian" border="0" align="left" cellpadding="0" cellspacing="0"
                    style="margin-bottom: 5px; margin-top: 4px; margin-left: 15px; width: auto;"
                    class="content04">
                    <tr>
                        <td align="right">
                            上级机构：
                        </td>
                        <td id="tishiTD" runat="server" clientidmode="Static" style="text-overflow: ellipsis;
                            word-break: keep-all; overflow: hidden;">
                        </td>
                        <td align="right">
                            新农合网点编号：
                        </td>
                        <td>
                            <tll:DataTextBox ID="sXNHCode" runat="server" MaxLength="50" Width="120"></tll:DataTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 100px">
                            机构名称：
                        </td>
                        <td style="width: 160px">
                            <tll:DataTextBox ID="sOrganizationName" Width="120" runat="server" MaxLength="50"></tll:DataTextBox>
                        </td>
                        <td align="right" style="width: 140px">
                            组织机构代码：
                        </td>
                        <td style="width: 160px">
                            <asp:TextBox ID="txtOrganizationCode" Width="120" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            机构类型：
                        </td>
                        <td>
                            <tll:DataDropDownList ID="sOrganizationType" runat="server" Width="120">
                            </tll:DataDropDownList>
                        </td>
                        <td align="right">
                            机构级别：
                        </td>
                        <td>
                            <tll:DataDropDownList ID="sOrganizationLevel" runat="server" Width="120">
                            </tll:DataDropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="0"
                    style="margin-bottom: 2px; margin-top: 2px; height: 26px;">
                    <tr>
                        <td>
                            <div class="btn01" id="btnList">
                                <asp:LinkButton ID="btnQuery" runat="server" OnClick="btnQuery_Click">
                            <span>
                              <img alt="" src="http://extjs.com/s.gif" border="0" class="icon icon-magnifier" /><div class="center">
                                    查询</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="btnAdd" runat="server" OnClientClick="return Add();">
                            <span>
                                <img src="../../../images/table_add.png" alt="" border="0" /><div class="center">
                                    新增</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="btnUpdate" OnClientClick="return Update();" runat="server">
                            <span>
                                <img src="../../../images/table_edit.png" alt="" border="0" /><div class="center">
                                    修改</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="lbtnStop" runat="server" OnClientClick="return Stop();" OnClick="lbtnStop_Click">
                            <span>
                                <img src="../../../images/table_delete.png" alt="" border="0" /><div id="divStop" class="center">
                                    停用</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="lbtnDepartment" runat="server" OnClientClick="return ViewDepartment();">
                            <span>
                                <img src="../../../images/search.png" alt="" border="0" /><div class="center">
                                    部门管理</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return AddSubordinate();">
                            <span>
                                <img src="../../../images/table_edit.png" alt="" border="0" /><div class="center" id="div1">
                                    调整机构</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="btnImportHospital" OnClientClick="return ImportArea();" runat="server">
                            <span>
                                  <img src="../../../images/search.png" alt="" border="0" /><div class="center">                
                                   导入</div>
                            </span>
                                </asp:LinkButton>
                                <asp:LinkButton ID="btnExportHospital" runat="server" OnClientClick="return ExportHospital();"
                                    OnClick="btnExportHospital_Click">
                            <span>
                                  <img src="../../../images/search.png" alt="" border="0" /><div class="center">                
                                   导出</div>
                            </span>
                                </asp:LinkButton>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div id="div_scroll_x" class="div_scroll" style="position: absolute; left: 274px;
        width: auto; right: 0px;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:HiddenField ID="hidgKey" runat="server" />
                <asp:HiddenField ID="hidFathergKey" runat="server" />
                <asp:HiddenField ID="hidSelectedKey" runat="server" />
                <asp:HiddenField ID="hidMulitStopStart" runat="server" />
                <asp:HiddenField ID="hidQueryFahterKey" runat="server" />
                <asp:HiddenField ID="hidIsRoot" runat="server" />
                <asp:HiddenField ID="hidtiaozhenjigou" runat="server" />
                <asp:Repeater ID="Repeater1" runat="server">
                    <HeaderTemplate>
                        <table id="tbList" width="100%" border="0" align="center" cellpadding="0" cellspacing="0"
                            class="list">
                            <thead>
                                <tr>
                                    <td align="center" style="width: 32px; padding-left: 4px;">
                                        <input id="chxIsMultipleSelect" type="checkbox" onclick="MultipleSelect(this)" />
                                    </td>
                                    <td align="center" style="width: 120px;">
                                        组织机构代码
                                    </td>
                                    <td align="center" style="width: 250px;">
                                        机构名称
                                    </td>
                                    <td align="center" style="width: 120px;">
                                        机构类型
                                    </td>
                                    <td align="center" style="width: 120px;">
                                        机构级别
                                    </td>
                                    <td align="center" style="width: 200px;">
                                        所属区域
                                    </td>
                                    <td align="center" style="width: 100px;">
                                        机构负责人
                                    </td>
                                    <td align="center" style="width: 100px;">
                                        联系电话
                                    </td>
                                    <td align="center" style="width: 60px;">
                                        有效标识
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <input type="checkbox" name="checkbox1" id="chkID" runat="server" value='<%#Eval("gKey")%>'
                                    onclick="checkStop(this)" accesskey='<%#Eval("iUse") %>' />
                                <input type="hidden" name="checkbox1" id="hidLevel" runat="server" value='<%#Eval("sOrganizationLevel")%>' />
                            </td>
                            <td align="left">
                                <div class="divnr-auto" title='<%#Eval("sOrganizationCode")%>'>
                                    <a href="#" onclick="View('<%#Eval("gKey")%>')">
                                        <%#Eval("sOrganizationCode")%></a></div>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <div class="divnr-auto" title='<%#Eval("sOrganizationName")%>'>
                                    <%#Eval("sOrganizationName")%></div>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <div class="divnr-auto" title='<%#GetsOrganizationTypeName(Eval("sOrganizationType").ToString().Trim())%>'>
                                    <%#GetsOrganizationTypeName(Eval("sOrganizationType").ToString().Trim())%></div>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <div class="divnr-auto" title='<%#GetsOrganizationLevelName(Eval("sOrganizationLevel").ToString().Trim())%>'>
                                    <%#GetsOrganizationLevelName(Eval("sOrganizationLevel").ToString().Trim())%></div>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <div class="divnr-auto" title='<%#GetDivisionName(Eval("sAreaCode").ToString())%>'>
                                    <%#GetDivisionName(Eval("sAreaCode").ToString())%></div>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <%--<div class="divnr-auto" title='<%#Eval("sCharge")%>'>
                                    <%#Eval("sCharge")%></div>--%>
                            </td>
                            <td align="left" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <div class="divnr-auto" title='<%#Eval("sTelephone")%>'>
                                    <%#Eval("sTelephone")%></div>
                            </td>
                            <td align="center" style='color: <%#Convert.ToString(Eval("iUse")) == "1" ? "" : "#FF0000"%>'>
                                <%#Eval("iUse").ToString().Trim() == "1" ? "已启用" : "已停用"%>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </asp:Repeater>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="AspNetPager1" EventName="PageChanged" />
                <asp:AsyncPostBackTrigger ControlID="lbtnStop" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <div class="div_AspNetPager" style="position: absolute; left: 271px; right: 0px;
        width: auto;">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="fengye">
                    <tr>
                        <td>
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                                meta:resourcekey="AspNetPager1" PageSize="15" SkinID="AspNetPager">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="lbtnStop" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnQuery" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
